$OpenBSD: patch-Makefile,v 1.2 2015/07/19 21:44:08 jasper Exp $
--- Makefile.orig	Wed Feb 18 06:49:21 2009
+++ Makefile	Sat Jul 18 09:39:21 2015
@@ -4,7 +4,7 @@ build: index.theme
 
 # intltool merging
 index.theme:
-	for f in `find -name *.icon.in -o -name *.theme.in`; do \
+	for f in `find . -name *.icon.in -o -name *.theme.in`; do \
 	    intltool-merge -d -u po $$f $${f%.in}; \
 	done
 	cd po; intltool-update -p --verbose -g $(GETTEXT_DOMAIN)
@@ -14,22 +14,24 @@ clean:
 	rm -f po/*.pot index.theme
 
 install: index.theme
+	find [0-9]* scalable -type d -exec \
+	    install -d -m 755 $$DESTDIR/${PREFIX}/share/icons/Human/'{}' \;
 	find [0-9]* scalable \( -name '*.png' -o -name '*.svg' -o -name '*.icon' \) -exec \
-	    install -D -m 644 '{}' $$DESTDIR/usr/share/icons/Human/'{}' \;
+	    install -D -m 644 '{}' $$DESTDIR/${PREFIX}/share/icons/Human/'{}' \;
 
 	# run icon-naming-utils
-	for d in $$DESTDIR/usr/share/icons/Human/*; do \
-	    (cd $$d; for c in *; do /usr/lib/icon-naming-utils/icon-name-mapping -c $$c; done); \
+	for d in $$DESTDIR/${PREFIX}/share/icons/Human/*; do \
+	    (cd $$d; for c in *; do ${LOCALBASE}/libexec/icon-name-mapping -c $$c; done); \
 	done
 
 	# install mo files
 	for f in po/*.po; do \
-	    D=$$DESTDIR/usr/share/locale/`basename $$f .po`/LC_MESSAGES/; \
+	    D=$$DESTDIR/${PREFIX}/share/locale/`basename $$f .po`/LC_MESSAGES/; \
 	    install -d -m 755 $$D; \
 	    msgfmt -o $$D/$(GETTEXT_DOMAIN).mo $$f; \
 	done
 
 	# install index
-	install -D -m 644 index.theme $$DESTDIR/usr/share/icons/Human/index.theme
+	install -D -m 644 index.theme $$DESTDIR/${PREFIX}/share/icons/Human/index.theme
 
 .PHONY: build i18n clean install
